package com.starnet.yarnmonitor.yarn.service;

import com.starnet.yarnmonitor.yarn.vo.AppVO;
import com.starnet.yarnmonitor.yarn.vo.MetricsVO;
import com.starnet.yarnmonitor.yarn.vo.NodeVO;
import com.starnet.yarnmonitor.yarn.vo.QueueVO;
import org.apache.hadoop.yarn.exceptions.YarnException;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface ClusterService {
    List<NodeVO> getAllNodes(Integer cur, Integer size) throws IOException;

    MetricsVO getClusterInfo() throws IOException;


    List<QueueVO> getAllQueues(Integer cur, Integer size) throws IOException, YarnException;

    List<AppVO> getAllApps(Integer cur, Integer size) throws IOException, YarnException;


    void getLogsByAppId(HttpServletResponse response,String applicationId) throws IOException;

    AppVO getAppById(String applicationId) throws IOException, YarnException;
}
